#!/bin/bash

OJECTNAME=helpTask-1.0.1

pid=`ps -ef |grep $PROJECTNAME |grep -v "grep" |awk '{print $2}'`

if [ $pid ]; then

<200b>    echo "$PROJECTNAME  is  running  and pid=$pid"

else

   echo "Start success to start $PROJECTNAME ...."

   nohup java -DjvmArguments="Xms512m Xmx512m" -Djava.security.egd=/dev/urandom -jar helpTask-1.0.1.jar  > /www/wwwroot/jy.two58.cn/service/logs/helpTask-service.log  2>&1 &

fi

